<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<meta name="renderer" content="webkit">
	<title><block name="title">标题</block></title>
	<load href='__PUBLIC__/bower_components/bootstrap/dist/css/bootstrap.min.css' />
</head>
<body> 
<div style="padding-bottom:80px; position: relative; min-heigh: 100%;">
	<div class="header" style="width: 1200px; margin: 0 auto; height: 35px; background: #EEE; margin-bottom: 10px; padding: 0 20px; line-height: 30px;">
	<block name="header">
		<?php
		if($_SESSION['username']){
			switch ($_SESSION['type'])
			{
				case 1:
				  echo '<a href="__ROOT__/Home/Teacher/account">'.$_SESSION['username'].'</a>';
				  break;  
				case 2:
				  echo '<a href="__ROOT__/index.php/Home/Teacher/account">'.$_SESSION['username'].'</a>';
				  break;
				case 3:
				  echo '<a href="__ROOT_/index.php/Home/Department/account">'.$_SESSION['username'].'</a>';
				  break;
			}
			?>
				你好<a href="__ROOT_/index.php/Home/Index/logoout" style="margin-right: 20px;">退出</a>
			<?php
		}else{
			?>			
			<a href="__ROOT__/index.php/Home/Index/login">登录</a>
		<?php
			}
		?>
		<a href="__ROOT__/index.php/Home/Index/index" style="float:right; margin-left:15px;">首页</a>
		<a href="__ROOT__/index.php/Index/register" style="float:right;">注册</a>
	</block>
</div>
	<block name="banner"></block>
	<div style="width: 1200px; margin: 0 auto;">
		<block name="body">内容</block>
	</div>
	<block name="footer">
	<div class="footer" style="height: 80px; background:black; text-align:center; position: absolute; left:0; right:0;bottom: 0px;">
        超老师版权所有
	</div>
	</block>
	<load href='__PUBLIC__/bower_components/jquery/dist/jquery.js'/>
	<load href='__PUBLIC__/admin/js/bootstrap.min.js'/>
	<block name="myjs">
	
	</block>
</div>
</body>
</html>